package com.bringway.p2p.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.bringway.p2p.dao.P2PZqfdDao;
import com.bringway.p2p.service.P2PZqfdService;
import net.sf.json.JSONObject;

/*
 * @ClassName: P2PZqfdServiceImpl
 * @Description: 债权分档的业务逻辑实现类
 * @author: 邵jing
 * @date: 2016年2月19日 下午5:46:43
 */
@Transactional
@Service
public class P2PZqfdServiceImpl implements P2PZqfdService {
	@Autowired
	private P2PZqfdDao p2pZqfdDao;
	
	@Override
	public List queryZqfdDetails(JSONObject parms) {
		return p2pZqfdDao.queryZqfdDetails(parms);
	}

	@Override
	public int queryZqfdDetailsItem(JSONObject parms) {
		return p2pZqfdDao.queryZqfdDetailsItem(parms);
	}

	@Override
	public List queryZqfd(JSONObject params) {
		return p2pZqfdDao.queryZqfd(params);
	}

	@Override
	public int queryZqfdItems(JSONObject params) {
		return p2pZqfdDao.queryZqfdItems(params);
	}

	@Override
	public boolean addZqfdDetails(JSONObject params) {
		return p2pZqfdDao.addZafdDetails(params)>0;
	}

	@Override
	public List<JSONObject> checkJE(JSONObject params) {
		return p2pZqfdDao.checkJE(params);
	}

	@Override
	public boolean addZqfd(JSONObject params) {
		 
		return p2pZqfdDao.addZqfd(params);
	}
}
